package com.ctgu.fastleader.service.serviceImpl;

import com.ctgu.fastleader.dao.OutputOrderMapper;
import com.ctgu.fastleader.service.OutputOrderService;
import com.ctgu.fastleader.vo.MoneyOfMonth;
import com.ctgu.fastleader.vo.OutputOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class OutputOrderServiceImpl implements OutputOrderService {
    @Autowired
    private OutputOrderMapper outputOrderMapper;


    @Override
    public OutputOrder selectByPrimaryKey(Integer orderid) {
        return outputOrderMapper.selectByPrimaryKey(orderid);
    }

    @Override
    public List<OutputOrder> findAllOutputOrder() {
        return outputOrderMapper.findAllOutputOrder();
    }

    @Override
    public List<OutputOrder> findAllOutputOrderNotOutput() {
        return outputOrderMapper.findAllOutputOrderNotOutput();
    }

    @Override
    public List<OutputOrder> searchOutputOrderByKeyWord(Integer orderid, Integer goodsid, String customerphone, Date createtime) {
        return outputOrderMapper.searchOutputOrderByKeyWord(orderid,goodsid,customerphone,createtime);
    }

    @Override
    public int insertSelective(OutputOrder record) {
        return outputOrderMapper.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return outputOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int selectOutputOrderstate() {
        return outputOrderMapper.selectOutputOrderstate();
    }

    @Override
    public List<Map<Integer, Integer>> selectSaleOrder() {
        return outputOrderMapper.selectSaleOrder();
    }

    @Override
    public int updateByPrimaryKeySelective(OutputOrder record) {
        return outputOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<OutputOrder> findAllOutputState1() {
        return outputOrderMapper.findAllOutputState1();
    }

    @Override
    public int selectOutputOrderstate2() {
        return outputOrderMapper.selectOutputOrderstate2();
    }

    @Override
    public List<MoneyOfMonth> moneyEveryMonth() {
        return outputOrderMapper.moneyEveryMonth();
    }
}
